﻿import mx.utils.Delegate;
import arkadium.*;

class game.DataManager
{
	//private var _aPluginList:Array;
	//private var _nPluginsLoaded:Number;
	private var _nGameScore:Number = 0;
	
	
	private function DataManager()
	{
		
	}
	
	/**************************************************************************************************\
	getInstance - This function is called to access the sole instance of this class. If the instance 
	doesn't exist, it is created and returned.
	\**************************************************************************************************/
	private static var _cInstance:DataManager = null;
	
	public static function getInstance():DataManager
	{
		if ( !DataManager._cInstance )
		{
			_cInstance = new DataManager();
		}
		
		return DataManager._cInstance;
	}
	
	public function getScore():Number{
		return( _nGameScore );
	} 
	
	public function setScore( nScore:Number ){
		_nGameScore = nScore;
	}
	
	public function addToScore( nScore:Number ){
		_nGameScore += nScore;
	}

}